#define _CRT_SECURE_NO_WARNINGS 1

#pragma once
#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#define max 2
#define name_max 20
#define sex_max 10
#define address_max 30
#define phone_max 11

typedef struct addressbook
{
	char name[name_max];
	char sex[sex_max];
	char address[address_max];
	char phone[phone_max];
	int age;
}adsbook;

struct peop
{
	adsbook* data;
	int sz;
	int capacity;
};


void Init_book(struct peop* arr);
void Add_book(struct peop* arr);
void Print_book(struct peop* arr);
void Delet_book(struct peop* arr);
int Check_book(struct peop* arr, char* name);
void Modify_book(struct peop* arr);
void Find_book(struct peop* arr);
void Empty_book(struct peop* arr);
int Think_book(struct peop* arr, char* name);
void Pop_book(struct peop* arr);
void Change_book(struct peop* arr, int i, int j);
int push_book(struct peop* arr);
void Save_book(struct peop* arr);
void Load_book(struct peop* arr);